import request from "@/utils/request"
export default{
    list(){
        return request({
            url:'/admin/edu/teacher/list',
            method:'get'
        })
    },
    listPage(page,limit,searchObject){
        return request({
            url:`/admin/edu/teacher/list/${page}/${limit}`,
            method:'get',
            params:searchObject
        })
    },
    removeById(id){
        return request({
            url:`/admin/edu/teacher/remove/${id}`,
            method:'delete'
        })
    },
    removeByIds(ids){
        return request({
            url:`/admin/edu/teacher/bitch-remove`,
            method:'delete',
            data:ids
        })
    },
    saveTeacher(teacher){
        return request({
            url:`/admin/edu/teacher/save`,
            method:'put',
            data:teacher
        })
    },
    getById(id){
        return request({
            url:`/admin/edu/teacher/get/${id}`,
            method:'get'
        })
    },
    updateTeacher(teacher){
        return request({
            url:`/admin/edu/teacher/update`,
            method:'put',
            data:teacher
        })
    },
    getNamesByKey(name){
       return request({
        url:`/admin/edu/teacher/getNames/${name}`,
        method:'get'
       })
    },
    test(){
        return request({
            url:'/test',
            method:'get'
        })
    },
    insert(test){
        return request({
            url:'/insert',
            method:'post',
            data:test
        })
    }
}